﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UrsaStats
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            comboBox1.DropDownStyle = ComboBoxStyle.DropDownList;
            int i;
            for (i = 1; i < 26; i++)
            {
                comboBox1.Items.Add(i);
            }
            comboBox1.SelectedIndex = 0;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            int n = 0;
            if (Int32.TryParse(comboBox1.Text, out n))
            {
                n = Convert.ToInt32(comboBox1.Text);
            }
            if (n > 0)
            {
                IChar ursa = new Ursa();
                label6.Text = ursa.getStats(n);
            }

        }
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            label6.Text = "";

        }

    }
}
